Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement var and std using a numerically stable parallel algorithm #596

Merged
merged 6 commits into from
Oct 28, 2024

Conversation

tomwhite
Copy link
Member

Fixes #29

This uses the algorithm mentioned in #29 (comment). I also included some of the tests from #327 by @alxmrs.

alxmrs and others added 6 commits October 27, 2024 17:16
Fixes #29. Here, I use existing cubed operations to implement `var` and `std`. Please let me know if I should reimplement the primitives as pure reductions.

List order follows import order.

Add correction
Passes cubed/tests/test_array_api.py::test_var[False-0.0-0]

Test example of poorly conditioned case for var
@tomwhite tomwhite merged commit bc44d38 into main Oct 28, 2024
12 checks passed
@tomwhite tomwhite deleted the var-std branch October 28, 2024 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement var and std
2 participants